package net.cyan.nest;

import net.cyan.commons.util.ObjectFactory;

/**
 * 
 * @author camel
 * @date 2008-4-14
 */
public class NestBeanProviderFactory implements ObjectFactory<BeanContainer>
{
    private boolean auto;

    private String path = "nest.xml";

    public NestBeanProviderFactory()
    {
    }

    public BeanContainer create() throws Exception
    {
        return new BeanContainer(auto);
    }

    public boolean isAuto()
    {
        return auto;
    }

    public void setAuto(boolean auto)
    {
        this.auto = auto;
    }

    public String getPath()
    {
        return path;
    }

    public void setPath(String path)
    {
        this.path = path;
    }
}
